package com.LFLWZ.controller;

import com.LFLWZ.beans.Dto.Dto;
import com.LFLWZ.service.ShowPageService;
import com.LFLWZ.utils.DtoUtil;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserPageController {
    @Reference
    private ShowPageService userListService;
    @GetMapping("list")
    public Dto List(){
        return DtoUtil.returnSuccessData(userListService.queryAllByLimit(0,8));
    }
}
